// auxiliary file to set outcome-specific twoway graph specs for RD plots

global ytitle = ""
global title = ""

	// Define titesl for PCA variables
	{
	if "$yvar" == "tot_p11" {
		global ytitle = "2011 Population, residuals"
		global title = "2011 Population"
		*global yscale = "ylabel(,nogrid angle(0)) yscale(range(-0.01 0.01))"
		global control = ""
	}
	else if "$yvar" == "tot_p11_diff" {
		global ytitle = "Population Difference (levels), residuals"
		global title = "2011-2001 Population Growth"
		*global yscale = "ylabel(,nogrid angle(0)) yscale(range(-0.01 0.01))"
		global control = ""
	}
	else if "$yvar" == "tot_p11_diff2" {
		global ytitle = "Population Difference (levels), residuals"
		global title = "2011-2001 Population Growth"
		*global yscale = "ylabel(,nogrid angle(0)) yscale(range(-0.01 0.01))"
		global control = ""
	}
	else if "$yvar" == "tot_m11" {
		global ytitle = "2011 Male Population, residuals"
		global title = "2011 Male Population"
		*global yscale = "ylabel(-4 -2 0 2 4,nogrid angle(0)) yscale(range(-4 4))"
		global control = ""
		*global control = "tot_m"
	}
	else if "$yvar" == "tot_f11" {
		global ytitle = "2011 Female Population, residuals"
		global title = "2011 Female Population"
		*global yscale = "ylabel(-4 -2 0 2 4,nogrid angle(0)) yscale(range(-4 4))"
		global control = ""
		*global control = "tot_f"
	}
	else if "$yvar" == "pct_06_11" {
		global ytitle = "Share of Pop. Ages 0-6, residuals"
		global title = "Population Cohort 0-6 Years Old"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "pct_scst_11" {
		global ytitle = "Share of Population SC/ST, residuals"
		global title = "Scheduled Caste/Scheduled Tribe"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "lit_p_11" {
		global ytitle = "Literacy Rate, residuals"
		global title = "Literacy"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "lit_m_11" {
		global ytitle = "Male Literacy Rate, residuals"
		global title = "Male Literacy"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "lit_f_11" {
		global ytitle = "Female Literacy Rate, residuals"
		global title = "Female Literacy"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_p_11" {
		global ytitle = "Share Workers, residuals"
		global title = "Workers, All Sectors"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_m_11" {
		global ytitle = "Share Male Workers, residuals"
		global title = "Male Workers, All Sectors"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_f_11" {
		global ytitle = "Share Female Workers, residuals"
		global title = "Female Workers, All Sectors"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_main_p_11" {
		global ytitle = "Share Main Workers, residuals"
		global title = "Main Workers, All Sectors"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0)) yscale(range(-0.015 0.015))"
	}
	else if "$yvar" == "work_main_m_11" {
		global ytitle = "Share Male Main Workers, residuals"
		global title = "Male Main Workers, All Sectors"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0)) yscale(range(-0.015 0.015))"
	}
	else if "$yvar" == "work_main_f_11" {
		global ytitle = "Share Female Main Workers, residuals"
		global title = "Female Main Workers, All Sectors"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0)) yscale(range(-0.015 0.015))"
	}
	else if "$yvar" == "work_marg_p_11" {
		global ytitle = "Share Marginal Workers, residuals"
		global title = "Marginal Workers, All Sectors"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0)) yscale(range(-0.015 0.015))"
	}
	else if "$yvar" == "work_marg_m_11" {
		global ytitle = "Share Male Marginal Workers, residuals"
		global title = "Male Marginal Workers, All Sectors"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0)) yscale(range(-0.015 0.015))"
	}
	else if "$yvar" == "work_marg_f_11" {
		global ytitle = "Share Female Marginal Workers, residuals"
		global title = "Female Marginal Workers, All Sectors"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0)) yscale(range(-0.015 0.015))"
	}
	else if "$yvar" == "work_pooled_ag_p_11" {
		global ytitle = "Share Ag Workers, residuals"
		global title = "Agricultural Workers (Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"	
	}
	else if "$yvar" == "work_pooled_ag_m_11" {
		global ytitle = "Share of Male Population, residuals"
		global title = "Male Agricultural Workers (Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_ag_f_11" {
		global ytitle = "Share of Female Population, residuals"
		global title = "Female Agricultural Workers (Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_hh_p_11" {
		global ytitle = "Share Household Workers, residuals"
		global title = "Household Workers (Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_hh_m_11" {
		global ytitle = "Share of Male Population, residuals"
		global title = "Male Household Workers (Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_hh_f_11" {
		global ytitle = "Share of Female Population, residuals"
		global title = "Female Household Workers (Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_ot_p_11" {
		global ytitle = "Share Non-Ag Workers, residuals"
		global title = "Non-Agricultural Workers (Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_ot_m_11" {
		global ytitle = "Share of Male Population, residuals"
		global title = "Male Non-Agricultural Workers (Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_ot_f_11" {
		global ytitle = "Share of Female Population, residuals"
		global title = "Female Non-Agricultural Workers (Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_al_p_11" {
		global ytitle = "Share Ag Laborers, residuals"
		global title = "Agricultural Laborers"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"	
	}
	else if "$yvar" == "work_pooled_al_m_11" {
		global ytitle = "Share Male Ag Laborers, residuals"
		global title = "Male Agricultural Laborers"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_al_f_11" {
		global ytitle = "Share Female Ag Laborers, residuals"
		global title = "Female Agricultural Laborers"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_cl_p_11" {
		global ytitle = "Share Cultivators, residuals"
		global title = "Cultivators"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"	
	}
	else if "$yvar" == "work_pooled_cl_m_11" {
		global ytitle = "Share Male Cultivators, residuals"
		global title = "Male Cultivators"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_cl_f_11" {
		global ytitle = "Share Female Cultivators, residuals"
		global title = "Female Cultivators"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "pct_ag_al_11" {
		global ytitle = "Ag Laborers as Share of Ag Workers, residuals"
		global title = "Share of Agricultural Workers As Laborers"
		*global yscale = "ylabel(-0.03 -0.02 -0.01 0  0.01 0.02 0.03,nogrid angle(0)) yscale(range(-0.03 0.03))"
	}
	else if "$yvar" == "pct_ag_main_11" {
		global ytitle = "Main Ag Workers as Share of Total Ag Workers, residuals"
		global title = "Share of Agricultural Workers As Main Workers"
		*global yscale = "ylabel(-0.03 -0.02 -0.01 0  0.01 0.02 0.03,nogrid angle(0)) yscale(range(-0.03 0.03))"
	}
	else if "$yvar" == "pct_work_ag_11" {
		global ytitle = "Ag Workers as Share of Total Workers, residuals"
		global title = "Share of Total Workers in Agriculture"
		*global yscale = "ylabel(-0.03 -0.02 -0.01 0  0.01 0.02 0.03,nogrid angle(0)) yscale(range(-0.03 0.03))"
	}
	else if "$yvar" == "pct_work_main_11" {
		global ytitle = "Main Workers as Share of Toal Workers, residuals"
		global title = "Main Workers as Share of Total Workforce"
		*global yscale = "ylabel(-0.03 -0.02 -0.01 0  0.01 0.02 0.03,nogrid angle(0)) yscale(range(-0.03 0.03))"
	}
	else if "$yvar" == "work_pool_cnt_ag_p_11" {
		global ytitle = "Number of Ag Workers, residuals"
		global title = "Agricultural Workers (Count)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"	
	}
	else if "$yvar" == "work_pool_cnt_ag_m_11" {
		global ytitle = "Number of Male Ag Workers, residuals"
		global title = "Male Agricultural Workers (Count)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pool_cnt_ag_f_11" {
		global ytitle = "Number of Female Ag Workers, residuals"
		global title = "Female Agricultural Workers (Count)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pool_cnt_hh_p_11" {
		global ytitle = "Number Household Workers, residuals"
		global title = "Household Workers (Count)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pool_cnt_hh_m_11" {
		global ytitle = "Number of Male HH Workers, residuals"
		global title = "Male Household Workers (Count)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pool_cnt_hh_f_11" {
		global ytitle = "Number of Female HH Workers, residuals"
		global title = "Female Household Workers (Count)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pool_cnt_ot_p_11" {
		global ytitle = "Number of Other Workers, residuals"
		global title = "Other Workers (Count)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pool_cnt_ot_m_11" {
		global ytitle = "Number of Male Other Workers, residuals"
		global title = "Male Other Workers (Count)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pool_cnt_ot_f_11" {
		global ytitle = "Number of Female Other Workers, residuals"
		global title = "Female Other Workers (Count)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pool01_ag_p_11" {
		global ytitle = "2011 Ag Workers / 2001 Pop, residuals"
		global title = "Agricultural Workers (as % of 2001 Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"	
	}
	else if "$yvar" == "work_pool01_ag_m_11" {
		global ytitle = "2011 Male Ag Workers / 2001 Male Pop, residuals"
		global title = "Male Agricultural Workers (as % of 2001 Male Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pool01_ag_f_11" {
		global ytitle = "2011 Female Ag Workers / 2001 Female Pop, residuals"
		global title = "Female Agricultural Workers (as % of 2001 Female Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pool01_hh_p_11" {
		global ytitle = "2011 HH Workers / 2001 Pop, residuals"
		global title = "Household Workers (as % of 2001 Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pool01_hh_m_11" {
		global ytitle = "2011 Male HH Workers / 2001 Male Pop, residuals"
		global title = "Male Household Workers (as % of 2001 Male Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pool01_hh_f_11" {
		global ytitle = "2011 Female HH Workers / 2001 Female Pop, residuals"
		global title = "Female Household Workers (as % of 2001 Female Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pool01_ot_p_11" {
		global ytitle = "2011 Other Workers / 2001 Pop, residuals"
		global title = "Other Workers (as % of 2001 Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pool01_ot_m_11" {
		global ytitle = "2011 Male Other Workers / 2001 Male Pop, residuals"
		global title = "Male Other Workers (as % of 2001 Male Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pool01_ot_f_11" {
		global ytitle = "2011 Female Other Workers / 2001 Female Pop, residuals"
		global title = "Female Other Workers (as % of 2001 Female Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_p_1101" {
		global ytitle = "2011 Workers / 2011 Pop, residuals"
		global title = "Workers, All Sectors (as % of 2001 Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_m_1101" {
		global ytitle = "2011 Male Workers / 2001 Male Pop, residuals"
		global title = "Male Workers, All Sectors (as % of 2001 Male Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_f_1101" {
		global ytitle = "2011 Female Workers / 2001 Female Pop, residuals"
		global title = "Female Workers, All Sectors (as % of 2001 Female Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_main_p_1101" {
		global ytitle = "2011 Main Workers / 2001 Pop, residuals"
		global title = "Main Workers, All Sectors (as % of 2001 Pop)"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0)) yscale(range(-0.015 0.015))"
	}
	else if "$yvar" == "work_main_m_1101" {
		global ytitle = "2011 Male Main Workers / 2001 Male Pop, residuals"
		global title = "Male Main Workers, All Sectors (as % of 2001 Male Pop)"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0)) yscale(range(-0.015 0.015))"
	}
	else if "$yvar" == "work_main_f_1101" {
		global ytitle = "2011 Female Main Workers / 2001 Female Pop, residuals"
		global title = "Female Main Workers, All Sectors (as % of 2001 Female Pop)"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0)) yscale(range(-0.015 0.015))"
	}
	else if "$yvar" == "work_marg_p_1101" {
		global ytitle = "2011 Marg Workers / 2001 Pop, residuals"
		global title = "Marginal Workers, All Sectors (as % of 2001 Pop)"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0)) yscale(range(-0.015 0.015))"
	}
	else if "$yvar" == "work_marg_m_1101" {
		global ytitle = "2011 Male Marg Workers / 2001 Male Pop, residuals"
		global title = "Male Marginal Workers, All Sectors (as % of 2001 Male Pop)"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0)) yscale(range(-0.015 0.015))"
	}
	else if "$yvar" == "work_marg_f_1101" {
		global ytitle = "2011 Female Marg Workers / 2001 Female Pop, residuals"
		global title = "Female Marginal Workers, All Sectors (as % of 2001 Female Pop)"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0)) yscale(range(-0.015 0.015))"
	}
	else if "$yvar" == "work_pooled_ag_p_1101" {
		global ytitle = "2011 Ag Workers / 2001 Pop, residuals"
		global title = "Agricultural Workers (as % of 2001 Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"	
	}
	else if "$yvar" == "work_pooled_ag_m_1101" {
		global ytitle = "2011 Male Ag Workers / 2001 Male Pop, residuals"
		global title = "Male Agricultural Workers (as % of 2001 Male Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_ag_f_1101" {
		global ytitle = "2011 Female Ag Workers / 2001 Female Pop, residuals"
		global title = "Female Agricultural Workers (as % of 2001 Female Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_hh_p_1101" {
		global ytitle = "2011 HH Workers / 2001 Pop, residuals"
		global title = "Household Workers (as % of 2001 Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_hh_m_1101" {
		global ytitle = "2011 Male HH Workers / 2001 Male Pop, residuals"
		global title = "Male Household Workers (as % of 2001 Male Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_hh_f_1101" {
		global ytitle = "2011 Female HH Workers / 2001 Female Pop, residuals"
		global title = "Female Household Workers (as % of 2001 Female Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_ot_p_1101" {
		global ytitle = "2011 Other Workers / 2001 Pop, residuals"
		global title = "Other Workers (as % of 2001 Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_ot_m_1101" {
		global ytitle = "2011 Male Other Workers / 2001 Male Pop, residuals"
		global title = "Male Other Workers (as % of 2001 Male Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_ot_f_1101" {
		global ytitle = "2011 Female Other Workers / 2001 Female Pop, residuals"
		global title = "Female Other Workers (as % of 2001 Female Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_al_p_1101" {
		global ytitle = "2011 Ag Laborers / 2001 Pop, residuals"
		global title = "Agricultural Laborers (as % of 2001 Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"	
	}
	else if "$yvar" == "work_pooled_al_m_1101" {
		global ytitle = "2011 Male Ag Laborers / 2001 Male Pop, residuals"
		global title = "Male Agricultural Laborers (as % of 2001 Male Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_al_f_1101" {
		global ytitle = "2011 Female Ag Laborers / 2001 Female Pop, residuals"
		global title = "Female Agricultural Laborers (as % of 2001 Female Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_cl_p_1101" {
		global ytitle = "2011 Cultivators / 2001 Pop, residuals"
		global title = "Cultivators (as % of 2001 Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"	
	}
	else if "$yvar" == "work_pooled_cl_m_1101" {
		global ytitle = "2011 Male Cultivators / 2001 Male Pop, residuals"
		global title = "Male Cultivators (as % of 2001 Male Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_cl_f_1101" {
		global ytitle = "2011 Female Cultivators / 2001 Female Pop, residuals"
		global title = "Female Cultivators (as % of 2001 Female Pop)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	}

	// Define titles for HPCA variables 
	{	
	if "$yvar" == "hpca11_t_hh_d" {
		global ytitle = "Share of Households, residuals"
		global title = "Dilapidated Households"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "hpca11_mat_r_gtbw" {
		global ytitle = "Share Households with Thatched Roof, residuals"
		global title = "Thatched Roofs"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "hpca11_mat_f_m" {
		global ytitle = "Share of Households, residuals"
		global title = "Mud Floors"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}		
	else if "$yvar" == "hpca11_h_size_avg" {
		global ytitle = "Average Household Size, residuals"
		global title = "Average Household Size"
		*global yscale = "ylabel(,nogrid angle(0))"
	}
	else if "$yvar" == "hpca11_owned" {
		global ytitle = "Share Households Owned (not Rented), residuals"
		global title = "Household Ownership"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "hpca11_dw_tb" {
		global ytitle = "Share Households with Water from Tubewell, residuals"
		global title = "Drinking Water from Tubewell"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "hpca11_w_within" {
		global ytitle = "Share Households with Water within, residuals"
		global title = "Water within Household"
		*global yscale = "ylabel(-0.02 -0.01 0 0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "hpca11_msl_good" {
		global ytitle = "Share Households with Electric Lighting, residuals"
		global title = "Electric Lighting"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "hpca11_msl_bad" {
		global ytitle = "Share of Households, residuals"
		global title = "Kerosene Lighting"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "hpca11_msl_nl" {
		global ytitle = "Share Households with No Lighting, residuals"
		global title = "No Lighting"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "hpca11_ww_nd" {
		global ytitle = "Share Households without Waste Water Drainage, residuals"
		global title = "No Waste Water Drainage"
		*global yscale = "ylabel(-0.03 -0.02 -0.01 0 0.01 0.02 0.03,nogrid angle(0)) yscale(range(-0.03 0.03))"
	}
	else if "$yvar" == "hpca11_cook_good" {
		global ytitle = "Share Households with Electric/Gas Cooking, residuals"
		global title = "Electric/Gas Cooking"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "hpca11_cook_bad" {
		global ytitle = "Share Households with Non-Electric/Gas Cooking, residuals"
		global title = "Non-Electric/Gas Cooking"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "hpca11_cook_no" {
		global ytitle = "Share Households with No Cooking, residuals"
		global title = "Households with No Cooking"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "hpca11_bank" {
		global ytitle = "Share Households Using Banking Services, residuals"
		global title = "Households Using Banking Services"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	} 
	else if "$yvar" == "hpca11_assets_rt" {
		global ytitle = "Share Households with Radio, residuals"
		global title = "Radio Ownership"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "hpca11_assets_tv" {
		global ytitle = "Share of Households, residuals"
		global title = "TV Ownership"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "hpca11_assets_bic" {
		global ytitle = "Share Households with Bicycle, residuals"
		global title = "Bicycle Ownership"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "hpca11_assets_smm" {
		global ytitle = "Share of Households, residuals"
		global title = "Motorcycle Ownership"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "hpca11_assets_cjv" {
		global ytitle = "Share Households with Car, residuals"
		global title = "Car Ownership"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "hpca11_assets_none" {
		global ytitle = "Share Households without Assets, residuals"
		global title = "Households without Assets"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "hpca11_assets_tel_l_m_b" {
		global ytitle = "Share of Households, residuals"
		global title = "Telephone Ownership"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "hpca11_assets_cl_int" {
		global ytitle = "Share Households with Computer, residuals"
		global title = "Computer Ownership (with Internet)"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
		global control = ""
	}
	else if "$yvar" == "hpca11_assets_cl_no_int" {
		global ytitle = "Share Households with Computer, residuals"
		global title = "Computer Ownership (without Internet)"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
		global control = ""
	}
	else if "$yvar" == "index_hpca11" {
		global ytitle = "Normalized Index, residuals"
		global title = "Index of 16 Desirable Household Characteristics"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	}

	// Define titles for VD variables 
	{
	if "$yvar" == "vd_com_d_post_off_11" {
		global ytitle = "1/0 Post/Telegraph in Village, residuals"
		global title = "Post Office/Telegraph Facilities"
		*global yscale = "ylabel(-0.02 -0.01 0 0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
		global control = ""
	}
	else if "$yvar" == "vdp_com_d_int_cafe_11" {
		global ytitle = "1/0 Internet Cafe in Village, residuals"
		global title = "Internet Cafe"
		*global yscale = "ylabel(-0.02 -0.01 0 0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
		global control = ""
	}
	else if "$yvar" == "vdp_com_d_phone_mob_11" {
		global ytitle = "1/0 Mobile Coverage in Village, residuals"
		global title = "Mobile Phone Coverage"
		*global yscale = "ylabel(,nogrid angle(0)) yscale(range(-0.01 0.01))"
		global control = ""
	}
	else if "$yvar" == "vd_edu_d_11" {
		global ytitle = "1/0 Ed. Facilities in Village, residuals"
		global title = "Educational Facilities"
		*global yscale = "ylabel(-0.2 -0.1 0 0.1 0.2,nogrid angle(0)) yscale(range(-0.2 0.2))"
		global control = ""
	}
	else if "$yvar" == "vd_edu_n_p_sch_11" {
		global ytitle = "Number of Schools, residuals"
		global title = "Number of Primary Schools"
		*global yscale = "ylabel(-0.2 -0.1 0 0.1 0.2,nogrid angle(0)) yscale(range(-0.2 0.2))"
	}
	else if "$yvar" == "vd_fin_d_bank_11" {
		global ytitle = "1/0 Banking in Village, residuals"
		global title = "Banking Facilities"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
		global control = ""
	}
	else if "$yvar" == "vd_fin_d_ac_soc_11" {
		global ytitle = "1/0 Credit Societies, residuals"
		global title = "Ag Credit Societies"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
		global control = ""
	}
	else if "$yvar" == "vdp_fin_d_atm_11" {
		global ytitle = "1/0 ATM in Village, residuals"
		global title = "ATM in Village"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
		global control = ""
	}
	else if "$yvar" == "vd_hea_d_medi_11" {
		global ytitle = "1/0 Med. Facilities in Village, residuals"
		global title = "Medical Facilities"
		*global yscale = "ylabel(-0.06 -0.04 -0.02 0 0.02 0.04 0.06,nogrid angle(0)) yscale(range(-0.06 0.06))"
		global control = ""
	}
	else if "$yvar" == "vd_tra_d_bus_11" {
		global ytitle = "1/0 Bus Service in Village, residuals"
		global title = "Bus Service"
		*global yscale = "ylabel(,nogrid angle(0)) yscale(range(-0.01 0.01))"
		global control = ""
	}
	else if "$yvar" == "vd_wat_d_any_11" {
		global ytitle = "1/0 Water Availability in Village, residuals"
		global title = "Drinking Water"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
		global control = ""
	}
	else if "$yvar" == "vd_wat_d_tubewell_11" {
		global ytitle = "1/0 Water from Tubewell, residuals"
		global title = "Drinking Water from Tubewell"
		*global yscale = "ylabel(,nogrid angle(0)) yscale(range(-0.01 0.01))"
		global control = ""
	}
	else if "$yvar" == "pct_irr_11" {
		global ytitle = "Share of Village Area, residuals"
		global title = "Share of Land Irrigated"
		*global yscale = "ylabel(-0.03 -0.02 -0.01 0 0.01 0.02 0.03,nogrid angle(0)) yscale(range(-0.03 0.03))"
	}
	else if "$yvar" == "pct_irr_twell_11" {
		global ytitle = "Share of Area Irrigated by Tubewell, residuals"
		global title = "Share of Land Irrigated by Tubewell"
		*global yscale = "ylabel(-0.03 -0.02 -0.01 0 0.01 0.02 0.03,nogrid angle(0)) yscale(range(-0.03 0.03))"
	}
	else if "$yvar" == "pct_sown_11" {
		global ytitle = "Share of Village Area Planted, residuals"
		global title = "Share of Land Area Planted"
		*global yscale = "ylabel(-0.03 -0.02 -0.01 0 0.01 0.02 0.03,nogrid angle(0)) yscale(range(-0.03 0.03))"
		global control = ""
	}
	else if "$yvar" == "index_vd11" {
		global ytitle = "Normalized Index, residuals"
		global title = "Index of 27 Desirable Community-Wide Outcomes"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	}

	// Define titles for SECC variables
	{
	if ("$yvar"=="pct_hh_mnth_inc_cul" | "$yvar"=="wpct_hh_mnth_inc_cul") {
		global ytitle = "Share of Households, residuals"
		global title = "Main Source of Household Income: Cultivation"
		*global yscale = "ylabel(-0.03 -0.02 -0.01 0 0.01 0.02 0.03,nogrid angle(0) labsize(large))  yscale(range(-0.03 0.03))"
		global control =  "work_pooled_ag_p_01"
	}
	else if ("$yvar"=="pct_hhh_occ_agr" | "$yvar"=="wpct_hhh_occ_agr") {
		global ytitle = "Share of Households, residuals"
		global title = "Head of Household Works in Agriculture"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ag_p_01"
	}
	else if ("$yvar"=="pct_hh_mnth_inc_dom" | "$yvar"=="wpct_hh_mnth_inc_dom") {
		global ytitle = "Share of Households, residuals"
		global title = "Main Source of Household Income: Domestic"
		*global yscale = "ylabel(-0.03 -0.02 -0.01 0 0.01 0.02 0.03,nogrid angle(0) labsize(large))  yscale(range(-0.03 0.03))"
		global control =  "work_pooled_hh_p_01"
	}
	else if ("$yvar"=="pct_hhh_occ_dom" | "$yvar"=="wpct_hhh_occ_dom") {
		global ytitle = "Share of Households, residuals"
		global title = "Head of Household is Domestic Worker"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_hh_p_01"
	}
	else if ("$yvar"=="pct_hh_mnth_inc_ent" | "$yvar"=="wpct_hh_mnth_inc_ent") {
		global ytitle = "Share of Households, residuals"
		global title = "Main Source of Household Income: Enterprise"
		*global yscale = "ylabel(-0.03 -0.02 -0.01 0 0.01 0.02 0.03,nogrid angle(0) labsize(large))  yscale(range(-0.03 0.03))"
		global control =  "work_pooled_ot_p_01"
	}
	else if ("$yvar"=="pct_hh_mnth_inc_lab" | "$yvar"=="wpct_hh_mnth_inc_lab") {
		global ytitle = "Share of Households, residuals"
		global title = "Main Source of Household Income: Labor"
		*global yscale = "ylabel(-0.03 -0.02 -0.01 0 0.01 0.02 0.03,nogrid angle(0) labsize(large))  yscale(range(-0.03 0.03))"
		global control =  "work_pooled_ot_p_01"
	}
	else if ("$yvar"=="pct_hh_mnth_inc_oth" | "$yvar"=="wpct_hh_mnth_inc_oth") {
		global ytitle = "Share of Households, residuals"
		global title = "Main Source of Household Income: Other"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ot_p_01"
	}
	else if ("$yvar"=="pct_hhh_occ_wrk" | "$yvar"=="wpct_hhh_occ_wrk") {
		global ytitle = "Share of Households, residuals"
		global title = "Head of Household is Non-Ag Laborer"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ot_p_01"
	}
	else if ("$yvar"=="pct_hhh_occ_oth" | "$yvar"=="wpct_hhh_occ_oth") {
		global ytitle = "Share of Households, residuals"
		global title = "Head of Household is Other Worker (Non-Labor)"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ot_p_01"
	}
	else if ("$yvar"=="pct_hhh_occ_ot" | "$yvar"=="wpct_hhh_occ_ot") {
		global ytitle = "Share of Households, residuals"
		global title = "Head of Household is Other Worker"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ot_p_01"
	}
	else if ("$yvar"=="pct_hh_salaried_job" | "$yvar"=="wpct_hh_salaried_job") {
		global ytitle = "Share of Households, residuals"
		global title = "Household Member has Salaried Job"
		*global yscale = "ylabel(-0.02 -0.01 0 0.01 0.02,nogrid angle(0) labsize(large))  yscale(range(-0.02 0.02))"
		global control =  "work_pooled_ot_p_01"
	}
	else if ("$yvar"=="pct_hh_irr_equip" | "$yvar"=="wpct_hh_irr_equip") {
		global ytitle = "Share of Households, residuals"
		global title = "Household Owns Irrigation Equipment"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "pct_irr_01"
	}
	else if ("$yvar"=="pct_land_irr") {
		global ytitle = "Share of household land, residuals"
		global title = "Share of Household Land Irrigated"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "pct_irr_01"
	}
	else if ("$yvar"=="pct_hhh_lit" | "$yvar"=="wpct_hhh_lit") {
		global ytitle = "Share of Households, residuals"
		global title = "Head of Household is Literate"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "lit_p_01"
	}
	else if ("$yvar"=="n_m_youth_occ_agr") {
		global ytitle = "Share of Male Youth, residuals"
		global title = "Male Youth Working in Agriculture"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ag_m_01"
	}
	else if ("$yvar"=="n_m_16_occ_agr") {
		global ytitle = "Share of Adult Men, residuals"
		global title = "Adult Men Working in Agriculture"
		*global yscale = "ylabel(-0.02 -0.01 0 0.01 0.02,nogrid angle(0) labsize(large))  yscale(range(-0.02 0.02))"
		global control =  "work_pooled_ag_m_01"
	}
	else if ("$yvar"=="work_secc_ag_m") {
		global ytitle = "Share of Male Pop with Poverty Indicator, residuals"
		global title = "Male Agricultural Workers (Poverty Indicator)"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ag_m_01"
	}
	else if ("$yvar"=="n_f_youth_occ_agr") {
		global ytitle = "Share of Female Youth, residuals"
		global title = "Female Youth Working in Agriculture"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ag_f_01"
	}
	else if ("$yvar"=="n_f_16_occ_agr") {
		global ytitle = "Share of Adult Women, residuals"
		global title = "Adult Women Working in Agriculture"
		*global yscale = "ylabel(-0.02 -0.01 0 0.01 0.02,nogrid angle(0) labsize(large))  yscale(range(-0.02 0.02))"
		global control =  "work_pooled_ag_f_01"
	}
	else if ("$yvar"=="work_secc_ag_f") {
		global ytitle = "Share of Female Pop with Poverty Indicator, residuals"
		global title = "Female Agricultural Workers (Poverty Indicator)"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ag_f_01"
	}
	else if ("$yvar"=="n_m_youth_occ_dom") {
		global ytitle = "Share of Male Youth, residuals"
		global title = "Male Youth with Household Jobs"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_hh_m_01"
	}
	else if ("$yvar"=="n_m_16_occ_dom") {
		global ytitle = "Share of Adult Men, residuals"
		global title = "Adult Men with Household Jobs"
		*global yscale = "ylabel(-0.02 -0.01 0 0.01 0.02,nogrid angle(0) labsize(large))  yscale(range(-0.02 0.02))"
		global control =  "work_pooled_hh_m_01"
	}
	else if ("$yvar"=="work_secc_hh_m") {
		global ytitle = "Share of Male Pop with Poverty Indicator, residuals"
		global title = "Male Household Workers (Poverty Indicator)"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_hh_m_01"
	}
	else if ("$yvar"=="n_f_youth_occ_dom") {
		global ytitle = "Share of Female Youth, residuals"
		global title = "Female Youth with Household Jobs"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_hh_f_01"
	}
	else if ("$yvar"=="n_f_16_occ_dom") {
		global ytitle = "Share of Adult Women, residuals"
		global title = "Adult Women with Household Jobs"
		*global yscale = "ylabel(-0.02 -0.01 0 0.01 0.02,nogrid angle(0) labsize(large))  yscale(range(-0.02 0.02))"
		global control =  "work_pooled_hh_f_01"
	}
	else if ("$yvar"=="work_secc_hh_f") {
		global ytitle = "Share of Female Pop with Poverty Indicator, residuals"
		global title = "Female Household Workers (Poverty Indicator)"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_hh_f_01"
	}
	else if ("$yvar"=="n_m_youth_occ_wrk") {
		global ytitle = "Share of Male Youth, residuals"
		global title = "Male Youth Non-Agricultural Laborers"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ot_m_01"
	}
	else if ("$yvar"=="n_m_16_occ_wrk") {
		global ytitle = "Share of Male Adults, residuals"
		global title = "Male Adult Non-Agricultural Laborers"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ot_m_01"
	}
	else if ("$yvar"=="n_m_youth_occ_ot") {
		global ytitle = "Share of Male Youth, residuals"
		global title = "Male Youth Working in Other Jobs"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ot_m_01"
	}
	else if ("$yvar"=="n_m_16_occ_ot") {
		global ytitle = "Share of Adult Men, residuals"
		global title = "Adult Men Working in Other Jobs"
		*global yscale = "ylabel(-0.02 -0.01 0 0.01 0.02,nogrid angle(0) labsize(large))  yscale(range(-0.02 0.02))"
		global control =  "work_pooled_ot_m_01"
	}
	else if ("$yvar"=="work_secc_ot_m") {
		global ytitle = "Share of Male Pop with Poverty Indicator, residuals"
		global title = "Male Other Workers (Poverty Indicator)"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ot_m_01"
	}
	else if ("$yvar"=="n_m_youth_occ_oth") {
		global ytitle = "Share of Male Youth, residuals"
		global title = "Male Youth Working in Other Jobs (Non-Labor)"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ot_m_01"
	}
	else if ("$yvar"=="n_m_16_occ_oth") {
		global ytitle = "Share of Male Adults, residuals"
		global title = "Male Adults Working in Other Jobs (Non-Labor)"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ot_m_01"
	}
	else if ("$yvar"=="work_secc_oth_m") {
		global ytitle = "Share of Male Pop with Poverty Indicator, residuals"
		global title = "Male Other Workers (Non-Labor, Poverty Indicator)"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ot_m_01"
	}
	else if ("$yvar"=="n_f_youth_occ_wrk") {
		global ytitle = "Share of Female Youth, residuals"
		global title = "Female Youth Non-Agricultural Laborers"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ot_f_01"
	}
	else if ("$yvar"=="n_f_16_occ_wrk") {
		global ytitle = "Share of Female Adults, residuals"
		global title = "Female Adult Non-Agricultural Laborers"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ot_f_01"
	}
	else if ("$yvar"=="n_f_youth_occ_ot") {
		global ytitle = "Share of Female Youth, residuals"
		global title = "Female Youth Working in Other Jobs"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ot_f_01"
	}
	else if ("$yvar"=="n_f_16_occ_ot") {
		global ytitle = "Share of Adult Women, residuals"
		global title = "Adult Women Working in Other Jobs"
		*global yscale = "ylabel(-0.02 -0.01 0 0.01 0.02,nogrid angle(0) labsize(large))  yscale(range(-0.02 0.02))"
		global control =  "work_pooled_ot_f_01"
	}
	else if ("$yvar"=="work_secc_ot_f") {
		global ytitle = "Share of Female Pop with Poverty Indicator, residuals"
		global title = "Female Other Workers (Poverty Indicator)"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ot_f_01"
	}
	else if ("$yvar"=="n_f_youth_occ_oth") {
		global ytitle = "Share of Female Youth, residuals"
		global title = "Female Youth Working in Other Jobs (Non-Labor)"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ot_f_01"
	}
	else if ("$yvar"=="n_f_16_occ_oth") {
		global ytitle = "Share of Female Adults, residuals"
		global title = "Female Adults Working in Other Jobs (Non-Labor)"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ot_f_01"
	}
	else if ("$yvar"=="work_secc_oth_f") {
		global ytitle = "Share of Female Pop with Poverty Indicator, residuals"
		global title = "Female Other Workers (Non-Labor, Poverty Indicator)"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_pooled_ot_f_01"
	}
	else if ("$yvar"=="n_m_youth_occ_dep") {
		global ytitle = "Share of Male Youth, residuals"
		global title = "Male Youth Classified as Dependents"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_m_01"
	}
	else if ("$yvar"=="n_m_16_occ_dep") {
		global ytitle = "Share of Male Adults, residuals"
		global title = "Male Adults Classified as Dependents"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_m_01"
	}
	else if ("$yvar"=="n_m_youth_occ_nil") {
		global ytitle = "Share of Male Youth, residuals"
		global title = "Male Youth with No Job"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_m_01"
	}
	else if ("$yvar"=="n_m_16_occ_nil") {
		global ytitle = "Share of Male Adults, residuals"
		global title = "Male Adults with No Job"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_m_01"
	}
	else if ("$yvar"=="n_m_youth_occ_stu") {
		global ytitle = "Share of Male Youth, residuals"
		global title = "Male Youth Students"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_m_01"
	}
	else if ("$yvar"=="n_m_16_occ_stu") {
		global ytitle = "Share of Male Adults, residuals"
		global title = "Male Adult Students"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_m_01"
	}
	else if ("$yvar"=="n_m_youth_emp") {
		global ytitle = "Share of Male Youth, residuals"
		global title = "Male Youth Employment Rate"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0) labsize(large))  yscale(range(-0.015 0.015))"
		global control =  "work_m_01"
	}
	else if ("$yvar"=="n_m_16_emp") {
		global ytitle = "Share of Male Adults, residuals"
		global title = "Male Adult Employment Rate"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0) labsize(large))  yscale(range(-0.015 0.015))"
		global control =  "work_m_01"
	}
	else if ("$yvar"=="n_f_youth_occ_dep") {
		global ytitle = "Share of Female Youth, residuals"
		global title = "Female Youth Classified as Dependents"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_f_01"
	}
	else if ("$yvar"=="n_f_16_occ_dep") {
		global ytitle = "Share of Female Adults, residuals"
		global title = "Female Adults Classified as Dependents"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_f_01"
	}
	else if ("$yvar"=="n_f_youth_occ_nil") {
		global ytitle = "Share of Female Youth, residuals"
		global title = "Female Youth with No Job"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_f_01"
	}
	else if ("$yvar"=="n_f_16_occ_nil") {
		global ytitle = "Share of Female Adults, residuals"
		global title = "Female Adults with No Job"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_f_01"
	}
	else if ("$yvar"=="n_f_youth_occ_stu") {
		global ytitle = "Share of Female Youth, residuals"
		global title = "Female Youth Students"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_f_01"
	}
	else if ("$yvar"=="n_f_16_occ_stu") {
		global ytitle = "Share of Female Adults, residuals"
		global title = "Female Adult Students"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_f_01"
	}
	else if ("$yvar"=="n_f_youth_emp") {
		global ytitle = "Share of Female Youth, residuals"
		global title = "Female Youth Employment Rate"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0) labsize(large))  yscale(range(-0.015 0.015))"
		global control =  "work_f_01"
	}
	else if ("$yvar"=="n_f_16_emp") {
		global ytitle = "Share of Female Adults, residuals"
		global title = "Female Adult Employment Rate"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0) labsize(large))  yscale(range(-0.015 0.015))"
		global control =  "work_f_01"
	}
	else if ("$yvar"=="n_m_16_lit") {
		global ytitle = "Share of Male Adults, residuals"
		global title = "Male Adult Literacy Rate"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "lit_m_01"
	}
	else if ("$yvar"=="n_m_16_midsch") {
		global ytitle = "Share of Male Adults, residuals"
		global title = "Male Adults with Middle School Education"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "lit_m_01"
	}
	else if ("$yvar"=="n_f_16_lit") {
		global ytitle = "Share of Female Adults, residuals"
		global title = "Female Adult Literacy Rate"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "lit_f_01"
	}
	else if ("$yvar"=="n_f_16_midsch") {
		global ytitle = "Share of Female Adults, residuals"
		global title = "Female Adults with Middle School Education"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "lit_f_01"
	}
	else if ("$yvar"=="pct_hh_mnth_inc_5_10" | "$yvar"=="wpct_hh_mnth_inc_5_10") {
		global ytitle = "Share of Households, residuals"
		global title = "Monthly Income Over Rs 5,000"
		*global yscale = "ylabel(-0.02 -0.01 0  0.01 0.02,nogrid angle(0) labsize(large))  yscale(range(-0.02 0.02))"
		global control =  "work_p_01 work_main_p_01 vd_edu_n_p_sch_01 vd_geo_k_town_01 vd_edu_d_01 vd_hea_d_medi_01 vd_wat_d_any_01 vd_fin_d_bank_01 vdpr_tra_d_app_pr_01 vd_pwr_d_all_01 vd_com_d_post_off_01 vd_com_d_post_tele_01 vd_com_d_phone_ll_01"
	}
	else if ("$yvar"=="pct_hh_mnth_inc_0_5" | "$yvar"=="wpct_hh_mnth_inc_0_5") {
		global ytitle = "Share of Households, residuals"
		global title = "Monthly Income Under Rs 5,000"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_p_01 work_main_p_01 vd_edu_n_p_sch_01 vd_geo_k_town_01 vd_edu_d_01 vd_hea_d_medi_01 vd_wat_d_any_01 vd_fin_d_bank_01 vdpr_tra_d_app_pr_01 vd_pwr_d_all_01 vd_com_d_post_off_01 vd_com_d_post_tele_01 vd_com_d_phone_ll_01"
	}
	else if ("$yvar"=="p_ratio") {
		global ytitle = "Share of Population, residuals"
		global title = "At Least 1 Poverty Indicator"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "work_p_01 work_main_p_01 vd_edu_n_p_sch_01 vd_geo_k_town_01 vd_edu_d_01 vd_hea_d_medi_01 vd_wat_d_any_01 vd_fin_d_bank_01 vdpr_tra_d_app_pr_01 vd_pwr_d_all_01 vd_com_d_post_off_01 vd_com_d_post_tele_01 vd_com_d_phone_ll_01"
	}
	else if ("$yvar"=="hh_ratio") {
		global ytitle = "Share of Households, residuals"
		global title = "At Least 1 Poverty Indicator"
		*global yscale = "ylabel(-0.02 -0.01 0  0.01 0.02,nogrid angle(0) labsize(large))  yscale(range(-0.02 0.02))"
		global control =  "work_p_01 work_main_p_01 vd_edu_n_p_sch_01 vd_geo_k_town_01 vd_edu_d_01 vd_hea_d_medi_01 vd_wat_d_any_01 vd_fin_d_bank_01 vdpr_tra_d_app_pr_01 vd_pwr_d_all_01 vd_com_d_post_off_01 vd_com_d_post_tele_01 vd_com_d_phone_ll_01"
	}
	else if ("$yvar"=="pct_hh_own_any_land" | "$yvar"=="wpct_hh_own_any_land") {
		global ytitle = "Share of Households, residuals"
		global title = "Household Owns Land"
		*global yscale = "ylabel(-0.02 -0.01 0 0.01 0.02,nogrid angle(0) labsize(large))  yscale(range(-0.02 0.02))"
		global control =  "vd_geo_a_01"
	}
	else if ("$yvar"=="pct_hhh_female" | "$yvar"=="wpct_hhh_female") {
		global ytitle = "Share of Households, residuals"
		global title = "Female Head of Household"
		*global yscale = "ylabel(-0.03 -0.02 -0.01 0 0.01 0.02 0.03,nogrid angle(0) labsize(large))  yscale(range(-0.03 0.03))"
		global control =  "work_f_01"
	}
	else if ("$yvar"=="pct_hhh_midsch" | "$yvar"=="wpct_hhh_midsch") {
		global ytitle = "Share of Households, residuals"
		global title = "Head of Household has Middle School Education"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  "lit_p_01"
	}
	else if ("$yvar"=="avg_hhh_age" | "$yvar"=="wavg_hhh_age") {
		global ytitle = "Age in Years, residuals"
		global title = "Head of Household Average Age"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  ""
	}
	else if ("$yvar"=="n_m_16_single") {
		global ytitle = "Share of Male Adults, residuals"
		global title = "Unmarried Male Adults"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  ""
	}
	else if ("$yvar"=="n_f_16_single") {
		global ytitle = "Share of Female Adults, residuals"
		global title = "Unmarried Female Adults"
		*global yscale = "ylabel(,nogrid angle(0) labsize(large)) " // yscale(range(-6 6))
		global control =  ""
	}
	else if ("$yvar"=="index_secc11") {
		global ytitle = "Normalized Index, residuals"
		global title = "Index of 5 Income and Wealth Outcomes"
		*global yscale = "ylabel(-0.02 -0.01 0  0.01 0.02,nogrid angle(0) labsize(large))  yscale(range(-0.02 0.02))"
		global control =  "work_p_01 work_main_p_01 vd_edu_n_p_sch_01 vd_geo_k_town_01 vd_edu_d_01 vd_hea_d_medi_01 vd_wat_d_any_01 vd_fin_d_bank_01 vdpr_tra_d_app_pr_01 vd_pwr_d_all_01 vd_com_d_post_off_01 vd_com_d_post_tele_01 vd_com_d_phone_ll_01"
	}
	}
	
	// Define titles for DISE variables
	{
	if "$yvar" == "tot_enroll_all2010" {
		global ytitle = "2010-11 Enrollment, residuals"
		global title = "2010-11 Total Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large) ) yscale(range(-10 10))"
	}
	else if "$yvar" == "tot_enroll_boys2010" {
		global ytitle = "2010-11 Male Enrollment, residuals"
		global title = "2010-11 Male Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "tot_enroll_girls2010" {
		global ytitle = "2010-11 Female Enrollment, residuals"
		global title = "2010-11 Female Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g15_enroll_all2010" {
		global ytitle = "2010-11 Primary Enrollment, residuals"
		global title = "2010-11 Total Enrollment, Grades 1-5"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g15_enroll_boys2010" {
		global ytitle = "2010-11 Male Primary Enrollment, residuals"
		global title = "2010-11 Male Enrollment, Grades 1-5"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g15_enroll_girls2010" {
		global ytitle = "2010-11 Female Primary Enrollment, residuals"
		global title = "2010-11 Female Enrollment, Grades 1-5"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g68_enroll_all2010" {
		global ytitle = "2010-11 Upper Primary Enrollment, residuals"
		global title = "2010-11 Total Enrollment, Grades 6-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g68_enroll_boys2010" {
		global ytitle = "2010-11 Male Upper Primary Enrollment, residuals"
		global title = "2010-11 Male Enrollment, Grades 6-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g68_enroll_girls2010" {
		global ytitle = "2010-11 Female Upper Primary Enrollment, residuals"
		global title = "2010-11 Female Enrollment, Grades 6-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "tot_enroll_all2011" {
		global ytitle = "2011-12 Enrollment, residuals"
		global title = "2011-12 Total Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large) ) yscale(range(-10 10))"
	}
	else if "$yvar" == "tot_enroll_boys2011" {
		global ytitle = "2011-12 Male Enrollment, residuals"
		global title = "2011-12 Male Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "tot_enroll_girls2011" {
		global ytitle = "2011-12 Female Enrollment, residuals"
		global title = "2011-12 Female Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g15_enroll_all2011" {
		global ytitle = "2011-12 Primary Enrollment, residuals"
		global title = "2011-12 Total Enrollment, Grades 1-5"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g15_enroll_boys2011" {
		global ytitle = "2011-12 Male Primary Enrollment, residuals"
		global title = "2011-12 Male Enrollment, Grades 1-5"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g15_enroll_girls2011" {
		global ytitle = "2011-12 Female Primary Enrollment, residuals"
		global title = "2011-12 Female Enrollment, Grades 1-5"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g68_enroll_all2011" {
		global ytitle = "2011-12 Upper Primary Enrollment, residuals"
		global title = "2011-12 Total Enrollment, Grades 6-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g68_enroll_boys2011" {
		global ytitle = "2011-12 Male Upper Primary Enrollment, residuals"
		global title = "2011-12 Male Enrollment, Grades 6-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g68_enroll_girls2011" {
		global ytitle = "2011-12 Female Upper Primary Enrollment, residuals"
		global title = "2011-12 Female Enrollment, Grades 6-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "tot_enroll_all2012" {
		global ytitle = "2012-13 Enrollment, residuals"
		global title = "2012-13 Total Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large) ) yscale(range(-10 10))"
	}
	else if "$yvar" == "tot_enroll_boys2012" {
		global ytitle = "2012-13 Male Enrollment, residuals"
		global title = "2012-13 Male Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "tot_enroll_girls2012" {
		global ytitle = "2012-13 Female Enrollment, residuals"
		global title = "2012-13 Female Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g15_enroll_all2012" {
		global ytitle = "2012-13 Primary Enrollment, residuals"
		global title = "2012-13 Total Enrollment, Grades 1-5"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g15_enroll_boys2012" {
		global ytitle = "2012-13 Male Primary Enrollment, residuals"
		global title = "2012-13 Male Enrollment, Grades 1-5"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g15_enroll_girls2012" {
		global ytitle = "2012-13 Female Primary Enrollment, residuals"
		global title = "2012-13 Female Enrollment, Grades 1-5"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g68_enroll_all2012" {
		global ytitle = "2012-13 Upper Primary Enrollment, residuals"
		global title = "2012-13 Total Enrollment, Grades 6-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g68_enroll_boys2012" {
		global ytitle = "2012-13 Male Upper Primary Enrollment, residuals"
		global title = "2012-13 Male Enrollment, Grades 6-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g68_enroll_girls2012" {
		global ytitle = "2012-13 Female Upper Primary Enrollment, residuals"
		global title = "2012-13 Female Enrollment, Grades 6-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "tot_enroll_all2013" {
		global ytitle = "2013-14 Enrollment, residuals"
		global title = "2013-14 Total Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large) ) yscale(range(-10 10))"
	}
	else if "$yvar" == "tot_enroll_boys2013" {
		global ytitle = "2013-14 Male Enrollment, residuals"
		global title = "2013-14 Male Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "tot_enroll_girls2013" {
		global ytitle = "2013-14 Female Enrollment, residuals"
		global title = "2013-14 Female Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g15_enroll_all2013" {
		global ytitle = "2013-14 Primary Enrollment, residuals"
		global title = "2013-14 Total Enrollment, Grades 1-5"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g15_enroll_boys2013" {
		global ytitle = "2013-14 Male Primary Enrollment, residuals"
		global title = "2013-14 Male Enrollment, Grades 1-5"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g15_enroll_girls2013" {
		global ytitle = "2013-14 Female Primary Enrollment, residuals"
		global title = "2013-14 Female Enrollment, Grades 1-5"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g68_enroll_all2013" {
		global ytitle = "2013-14 Upper Primary Enrollment, residuals"
		global title = "2013-14 Total Enrollment, Grades 6-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g68_enroll_boys2013" {
		global ytitle = "2013-14 Male Upper Primary Enrollment, residuals"
		global title = "2013-14 Male Enrollment, Grades 6-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g68_enroll_girls2013" {
		global ytitle = "2013-14 Female Upper Primary Enrollment, residuals"
		global title = "2013-14 Female Enrollment, Grades 6-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "tot_enroll_all2014" {
		global ytitle = "2014-15 Enrollment, residuals"
		global title = "2014-15 Total Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large) ) yscale(range(-10 10))"
	}
	else if "$yvar" == "tot_enroll_boys2014" {
		global ytitle = "2014-15 Male Enrollment, residuals"
		global title = "2014-15 Male Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "tot_enroll_girls2014" {
		global ytitle = "2014-15 Female Enrollment, residuals"
		global title = "2014-15 Female Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g15_enroll_all2014" {
		global ytitle = "2014-15 Primary Enrollment, residuals"
		global title = "2014-15 Total Enrollment, Grades 1-5"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g15_enroll_boys2014" {
		global ytitle = "2014-15 Male Primary Enrollment, residuals"
		global title = "2014-15 Male Enrollment, Grades 1-5"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g15_enroll_girls2014" {
		global ytitle = "2014-15 Female Primary Enrollment, residuals"
		global title = "2014-15 Female Enrollment, Grades 1-5"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g68_enroll_all2014" {
		global ytitle = "2014-15 Upper Primary Enrollment, residuals"
		global title = "2014-15 Total Enrollment, Grades 6-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g68_enroll_boys2014" {
		global ytitle = "2014-15 Male Upper Primary Enrollment, residuals"
		global title = "2014-15 Male Enrollment, Grades 6-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g68_enroll_girls2014" {
		global ytitle = "2014-15 Female Upper Primary Enrollment, residuals"
		global title = "2014-15 Female Enrollment, Grades 6-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	if "$yvar" == "tot_enroll_allPOST" {
		global ytitle = "2011-2015 Enrollment, residuals"
		global title = "2011-2015 Total Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large) ) yscale(range(-10 10))"
	}
	else if "$yvar" == "tot_enroll_boysPOST" {
		global ytitle = "2011-2015 Male Enrollment, residuals"
		global title = "2011-2015 Male Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "tot_enroll_girlsPOST" {
		global ytitle = "2011-2015 Female Enrollment, residuals"
		global title = "2011-2015 Female Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g15_enroll_allPOST" {
		global ytitle = "2011-2015 Primary Enrollment, residuals"
		global title = "2011-2015 Total Enrollment, Grades 1-5"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g15_enroll_boysPOST" {
		global ytitle = "2011-2015 Male Primary Enrollment, residuals"
		global title = "2011-2015 Male Enrollment, Grades 1-5"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g15_enroll_girlsPOST" {
		global ytitle = "2011-2015 Female Primary Enrollment, residuals"
		global title = "2011-2015 Female Enrollment, Grades 1-5"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g68_enroll_allPOST" {
		global ytitle = "2011-2015 Upper Primary Enrollment, residuals"
		global title = "2011-2015 Total Enrollment, Grades 6-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g68_enroll_boysPOST" {
		global ytitle = "2011-2015 Male Upper Primary Enrollment, residuals"
		global title = "2011-2015 Male Enrollment, Grades 6-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g68_enroll_girlsPOST" {
		global ytitle = "2011-2015 Female Upper Primary Enrollment, residuals"
		global title = "2011-2015 Female Enrollment, Grades 6-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "tot_pass_prev452014" {
		global ytitle = "2013-14 Count of Passing Students, residuals"
		global title = "2013-14 Total Students Who Passed, Grades 4-5"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
		*global control =  "passfrac_tot_45PRE"
	}
	else if "$yvar" == "tot_pass_prev782014" {
		global ytitle = "2013-14 Count of Passing Students, residuals"
		global title = "2013-14 Total Students Who Passed, Grades 7-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
		*global control =  "passfrac_tot_45PRE"
	}
	else if "$yvar" == "tot_pass60_prev452014" {
		global ytitle = "2013-14 Count of Passing Students, residuals"
		global title = "2013-14 Total Students Who Passed, Grades 4-5"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
		*global control =  "passfrac_tot_45PRE"
	}
	else if "$yvar" == "tot_pass60_prev782014" {
		global ytitle = "2013-14 Count of Passing Students, residuals"
		global title = "2013-14 Total Students Who Passed, Grades 7-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
		*global control =  "passfrac_tot_45PRE"
	}
	else if "$yvar" == "passfrac_tot_782014" {
		global ytitle = "2013-14 Test Pass Rate, residuals"
		global title = "2013-14 Test Pass Rate, Grades 7-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
		*global control =  "passfrac_tot_78PRE"
	}
	else if "$yvar" == "passfrac_tot_452014" {
		global ytitle = "2013-14 Test Pass Rate, residuals"
		global title = "2013-14 Test Pass Rate, Grades 4-5"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
		*global control =  "passfrac_tot_45PRE"
	}
	else if "$yvar" == "passfrac_tot_782014" {
		global ytitle = "2013-14 Test Pass Rate, residuals"
		global title = "2013-14 Test Pass Rate, Grades 7-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
		*global control =  "passfrac_tot_78PRE"
	}
	else if "$yvar" == "passfrac_b_452014" {
		global ytitle = "2013-14 Test Pass Rate, residuals"
		global title = "2013-14 Test Pass Rate, Grades 4-5, Boys"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
		*global control =  "passfrac_b_45PRE"
	}
	else if "$yvar" == "passfrac_b_782014" {
		global ytitle = "2013-14 Test Pass Rate, residuals"
		global title = "2013-14 Test Pass Rate, Grades 7-8, Boys"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
		*global control =  "passfrac_b_78PRE"
	}
	else if "$yvar" == "passfrac_g_452014" {
		global ytitle = "2013-14 Test Pass Rate, residuals"
		global title = "2013-14 Test Pass Rate, Grades 4-5, Girls"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
		*global control =  "passfrac_g_45PRE"
	}
	else if "$yvar" == "passfrac_g_782014" {
		global ytitle = "2013-14 Test Pass Rate, residuals"
		global title = "2013-14 Test Pass Rate, Grades 7-8, Girls"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
		*global control =  "passfrac_g_78PRE"
	}
	else if "$yvar" == "elec_frac2010" {
		global ytitle = "2010-11 Share Schools with Electricity, residuals"
		global title = "2010-11 Share Schools with Electricity"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
		*global control =  "passfrac_g_78PRE"
	}
	else if "$yvar" == "elec_frac2011" {
		global ytitle = "2011-12 Share Schools with Electricity, residuals"
		global title = "2011-12 Share Schools with Electricity"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
		*global control =  "passfrac_g_78PRE"
	}
	else if "$yvar" == "elec_frac2012" {
		global ytitle = "2012-13 Share Schools with Electricity, residuals"
		global title = "2012-13 Share Schools with Electricity"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
		*global control =  "passfrac_g_78PRE"
	}
	else if "$yvar" == "elec_frac2013" {
		global ytitle = "2013-14 Share Schools with Electricity, residuals"
		global title = "2013-14 Share Schools with Electricity"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "elec_frac2014" {
		global ytitle = "2014-15 Share Schools with Electricity, residuals"
		global title = "2014-15 Share Schools with Electricity"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "elec_fracPOST" {
		global ytitle = "2011-2015 Share Schools with Electricity, residuals"
		global title = "2011-2014 Share Schools with Electricity"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	}
	
	// Define titles for SHRUG variables 
	{
	if "$yvar" == "secc11_rural_cons_pc" {
		global ytitle = "Expenditure Per Capita (Rs/month), residuals"
		global title = "Expenditure Per Capita (levels)"
		*global yscale = "ylabel(-0.02 -0.01 0 0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
		global control = ""
	}
	else if "$yvar" == "ln_secc11_rural_cons_pc" {
		global ytitle = "Log Expenditure Per Capita, residuals"
		global title = "Expenditure Per Capita (logs)"
		*global yscale = "ylabel(-0.02 -0.01 0 0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
		global control = ""
	}
	else if "$yvar" == "secc11_inc_cultiv_share" {
		global ytitle = "Cultvation as Main Income Source, residuals"
		global title = "Share HHs Relying on Cultivation"
		*global yscale = "ylabel(,nogrid angle(0)) yscale(range(-0.01 0.01))"
		global control = ""
	}
	}

	// Define titles for EC variables 
	{
	if "$yvar" == "ec_firms2013" {
		global ytitle = "Firm count, residuals"
		global title = "Number of Firms in Village, 2013"
		*global yscale = "ylabel(-0.02 -0.01 0 0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
		*global control = ""
	}
	else if "$yvar" == "ec_employees2013" {
		global ytitle = "Employee count, residuals"
		global title = "Number of Employees in Village, 2013"
		*global yscale = "ylabel(-0.02 -0.01 0 0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
		*global control = ""
	}
	}

	// Define titles for 2001 covariates (Census)
	{
	if "$yvar" == "pct_06_01" {
		global ytitle = "Share of Pop. Ages 0-6, residuals"
		global title = "Population Cohort 0-6 Years Old, 2001"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "pct_scst_01" {
		global ytitle = "Share of Population SC/ST, residuals"
		global title = "Scheduled Caste/Scheduled Tribe, 2001"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "lit_p_01" {
		global ytitle = "Literacy Rate, residuals"
		global title = "Literacy Rate, 2001"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_p_01" {
		global ytitle = "Share Workers, residuals"
		global title = "All Workers, 2001 (Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_m_01" {
		global ytitle = "Share Male Workers, residuals"
		global title = "Male Workers, All Sectors, 2001"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_f_01" {
		global ytitle = "Share Female Workers, residuals"
		global title = "Female Workers, 2001 (Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_main_p_01" {
		global ytitle = "Share Main Workers, residuals"
		global title = "Main Workers, All Sectors, 2001"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0)) yscale(range(-0.015 0.015))"
	}
	else if "$yvar" == "work_main_m_01" {
		global ytitle = "Share Male Main Workers, residuals"
		global title = "Male Main Workers, All Sectors, 2001"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0)) yscale(range(-0.015 0.015))"
	}
	else if "$yvar" == "work_main_f_01" {
		global ytitle = "Share Female Main Workers, residuals"
		global title = "Female Main Workers, All Sectors, 2001"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0)) yscale(range(-0.015 0.015))"
	}
	else if "$yvar" == "work_marg_p_01" {
		global ytitle = "Share Marginal Workers, residuals"
		global title = "Marginal Workers, All Sectors, 2001"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0)) yscale(range(-0.015 0.015))"
	}
	else if "$yvar" == "work_marg_m_01" {
		global ytitle = "Share Male Marginal Workers, residuals"
		global title = "Male Marginal Workers, All Sectors, 2001" 
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0)) yscale(range(-0.015 0.015))"
	}
	else if "$yvar" == "work_marg_f_01" {
		global ytitle = "Share Female Marginal Workers, residuals"
		global title = "Female Marginal Workers, All Sectors, 2001"
		*global yscale = "ylabel(-0.015 -0.01 -0.005 0 0.005 0.01 0.015,nogrid angle(0)) yscale(range(-0.015 0.015))"
	}
	else if "$yvar" == "work_pooled_ag_p_01" {
		global ytitle = "Share Ag Workers, residuals"
		global title = "Agricultural Workers (2001 Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"	
	}
	else if "$yvar" == "work_pooled_ag_m_01" {
		global ytitle = "Share of Male Population, residuals"
		global title = "Male Agricultural Workers (2001 Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_ag_f_01" {
		global ytitle = "Share of Female Population, residuals"
		global title = "Female Agricultural Workers (2001 Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_hh_p_01" {
		global ytitle = "Share Household Workers, residuals"
		global title = "Household Workers (2001 Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_hh_m_01" {
		global ytitle = "Share of Male Population, residuals"
		global title = "Male Household Workers (2001 Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_hh_f_01" {
		global ytitle = "Share of Female Population, residuals"
		global title = "Female Household Workers (2001 Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_ot_p_01" {
		global ytitle = "Share Non-Ag Workers, residuals"
		global title = "2001 Non-Agricultural Workers (2001 Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_ot_m_01" {
		global ytitle = "Share of Male Population, residuals"
		global title = "2001 Male Non-Agricultural Workers (2001 Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "work_pooled_ot_f_01" {
		global ytitle = "Share of Female Population, residuals"
		global title = "Female Non-Agricultural Workers (2001 Share)"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "vd_pwr_d_any_01" {
		global ytitle = "Share of villages, residuals"
		global title = "Dummy for Any Power Access, 2001"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "vd_pwr_d_dom_01" {
		global ytitle = "Share of villages, residuals"
		global title = "Dummy for Domestic Power Access, 2001"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "vd_pwr_d_agr_01" {
		global ytitle = "Share of villages, residuals"
		global title = "Dummy for Agricultural Power Access, 2001"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "vd_pwr_d_all_01" {
		global ytitle = "Share of villages, residuals"
		global title = "Dummy for Power Access, All End Uses, 2001"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
	}
	else if "$yvar" == "vd_wat_d_any_01" {
		global ytitle = "1/0 Water Availability in Village, residuals"
		global title = "Drinking Water Access in Village, 2001"
		*global yscale = "ylabel(-0.01 -0.005 0 0.005 0.01,nogrid angle(0)) yscale(range(-0.01 0.01))"
		global control = ""
	}
	else if "$yvar" == "vd_wat_d_tubewell_01" {
		global ytitle = "1/0 Water from Tubewell, residuals"
		global title = "Drinking Water from Tubewell, 2001"
		*global yscale = "ylabel(,nogrid angle(0)) yscale(range(-0.01 0.01))"
		global control = ""
	}
	else if "$yvar" == "pct_irr_01" {
		global ytitle = "Share of Village Area, residuals"
		global title = "Share of Land Irrigated, 2001"
		*global yscale = "ylabel(-0.03 -0.02 -0.01 0 0.01 0.02 0.03,nogrid angle(0)) yscale(range(-0.03 0.03))"
	}
	else if "$yvar" == "vd_geo_k_town_01" {
		global ytitle = "Kilometers to Nearest Town, residuals"
		global title = "Distance to Nearest Town, 2001"
		*global yscale = "ylabel(-0.03 -0.02 -0.01 0 0.01 0.02 0.03,nogrid angle(0)) yscale(range(-0.03 0.03))"
	}
	else if "$yvar" == "index_vd_edu01" {
		global ytitle = "Normalized Index, residuals"
		global title = "Index of 7 School Facility Variables, 2001"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "index_vd_hea01" {
		global ytitle = "Normalized Index, residuals"
		global title = "Index of 8 Health Facility Variables, 2001"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "index_vd_fin01" {
		global ytitle = "Normalized Index, residuals"
		global title = "Index of 4 Financial Access Variables, 2001"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "index_vd_com01" {
		global ytitle = "Normalized Index, residuals"
		global title = "Index of 4 Communication Access Variables, 2001"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}
	else if "$yvar" == "index_vd_tra01" {
		global ytitle = "Normalized Index, residuals"
		global title = "Index of 4 Transportation Access Variables, 2001"
		*global yscale = "ylabel(-0.02 -0.01  0  0.01 0.02,nogrid angle(0)) yscale(range(-0.02 0.02))"
	}

	}
	
	// Define titles for 2005 DISE
	{
	if "$yvar" == "tot_enroll_all2005" {
		global ytitle = "2005-06 Enrollment, residuals"
		global title = "2005-06 Total Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large) ) yscale(range(-10 10))"
	}
	else if "$yvar" == "tot_enroll_boys2005" {
		global ytitle = "2005-06 Male Enrollment, residuals"
		global title = "2005-06 Male Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "tot_enroll_girls2005" {
		global ytitle = "2005-06 Female Enrollment, residuals"
		global title = "2005-06 Female Enrollment, Grades 1-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g15_enroll_all2005" {
		global ytitle = "2005-06 Primary Enrollment, residuals"
		global title = "2005-06 Total Enrollment, Grades 1-5"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g15_enroll_boys2005" {
		global ytitle = "2005-06 Male Primary Enrollment, residuals"
		global title = "2005-06 Male Enrollment, Grades 1-5"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g15_enroll_girls2005" {
		global ytitle = "2005-06 Female Primary Enrollment, residuals"
		global title = "2005-06 Female Enrollment, Grades 1-5"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g68_enroll_all2005" {
		global ytitle = "2005-06 Upper Primary Enrollment, residuals"
		global title = "2005-06 Total Enrollment, Grades 6-8"
		*global yscale = "ylabel(-10 -5 0 5 10,nogrid angle(0) labsize(large)) yscale(range(-10 10))"
	}
	else if "$yvar" == "g68_enroll_boys2005" {
		global ytitle = "2005-06 Male Upper Primary Enrollment, residuals"
		global title = "2005-06 Male Enrollment, Grades 6-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "g68_enroll_girls20065" {
		global ytitle = "2005-06 Female Upper Primary Enrollment, residuals"
		global title = "2005-06 Female Enrollment, Grades 6-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "tot_pass_prev452005" {
		global ytitle = "2004-05 Count of Passing Students, residuals"
		global title = "2004-05 Total Students Who Passed, Grades 4-5"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "tot_pass_prev782005" {
		global ytitle = "2004-05 Count of Passing Students, residuals"
		global title = "2004-05 Total Students Who Passed, Grades 7-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "tot_pass60_prev452005" {
		global ytitle = "2004-05 Count of Passing Students, residuals"
		global title = "2004-05 Total Students Who Passed, Grades 4-5"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "tot_pass60_prev782005" {
		global ytitle = "2004-05 Count of Passing Students, residuals"
		global title = "2004-05 Total Students Who Passed, Grades 7-8"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
	else if "$yvar" == "elec_frac2005" {
		global ytitle = "2005-06 Share Schools with Electricity, residuals"
		global title = "2005-06 Share Schools with Electricity"
		*global yscale = "ylabel(-6 -3 0 3 6,nogrid angle(0) labsize(medlarge)) yscale(range(-6 6))"
	}
    
	}
	
	
if "$ytitle"=="" {
	global ytitle = "$yvar"
}	
if "$title"=="" {
	global title = "$yvar"
}	
	
	